home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ssh-askpass-gnome.postinst < prev    next >
Text File  |  2009-10-22  |  2KB  |  66 lines

  1. #! /bin/sh
  2. # postinst script for ssh-askpass-gnome
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  14. #          <failed-install-package> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see /usr/share/doc/packaging-manual/
  17. #
  18. # quoting from the policy:
  19. #     Any necessary prompting should almost always be confined to the
  20. #     post-installation script, and should be protected with a conditional
  21. #     so that unnecessary prompting doesn't happen if a package's
  22. #     installation fails and the `postinst' is called with `abort-upgrade',
  23. #     `abort-remove' or `abort-deconfigure'.
  24.  
  25. case "$1" in
  26.     configure)
  27.         if dpkg --compare-versions "$2" lt-nl 1:4.1p1-1; then
  28.             # libexecdir changed, so remove the obsolete alternative.
  29.             update-alternatives --quiet --remove ssh-askpass \
  30.                 /usr/lib/ssh/gnome-ssh-askpass
  31.         fi
  32.     if dpkg --compare-versions "$2" lt-nl 1:4.1p1-7 && \
  33.         [ -h /etc/alternatives/ssh-askpass ] && \
  34.         [ "$(readlink /etc/alternatives/ssh-askpass)" = /usr/lib/ssh/gnome-ssh-askpass ]; then
  35.         # Work around the ssh-askpass alternative somehow ending up in
  36.         # manual mode.
  37.         update-alternatives --auto ssh-askpass
  38.     fi
  39.         update-alternatives --quiet \
  40.         --install /usr/bin/ssh-askpass ssh-askpass \
  41.                   /usr/lib/openssh/gnome-ssh-askpass 30 \
  42.         --slave /usr/share/man/man1/ssh-askpass.1.gz \
  43.                 ssh-askpass.1.gz /usr/share/man/man1/gnome-ssh-askpass.1.gz
  44.  
  45.  
  46.     ;;
  47.  
  48.     abort-upgrade|abort-remove|abort-deconfigure)
  49.  
  50.     ;;
  51.  
  52.     *)
  53.         echo "postinst called with unknown argument \`$1'" >&2
  54.         exit 0
  55.     ;;
  56. esac
  57.  
  58. # dh_installdeb will replace this with shell code automatically
  59. # generated by other debhelper scripts.
  60.  
  61.  
  62.  
  63. exit 0
  64.  
  65.  
  66.